/*
 * @Author: 郑亮 z17620994877@163.com
 * @Date: 2024-04-03 14:48:36
 * @LastEditors: 冰凌 1084359940@qq.com
 * @LastEditTime: 2024-04-12 12:54:21
 * @FilePath: \my-maple-flower-app\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

const route: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: () => (import('@/login/index.vue'))
    },
    {
        path: '/login',
        name: 'Login',
        component: () => (import('@/login/index.vue'))
    },
    {
        path: '/register',
        name: 'register',
        component:  () => import('@/register/index.vue')
    },
    {
        path: '/chat',
        name: 'Chat',
        component:  () => import('@/chat/index.vue')
    },
    {
        path: '/list',
        name: 'List',
        component:  () => import('@/list/index.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes: route
})

export default router 